<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var myname = '卡卡卡';
        var address = '中国';
        var age = 18;
        var email = '139';
        var gz = 200;
        console.log(myname);
        console.log(address);
        console.log(age);
        console.log(email);
        console.log(gz);
        var apple1 = '青苹果';
        var apple2 = '红苹果';
        var temp;
        temp = apple1
        apple1 = apple2;
        apple2 = temp;
        console.log(apple1);
        console.log(apple2);
        /* var love = prompt('你爱我吗？');
        var str = '你' + love + '我';
        alert(str); */
        /*  var year = prompt('输入出生年份');
         var age = 2020 - year;
         alert('你' + age + '岁'); */
        /* var number1 = prompt('输入1值');
        var number2 = prompt('输入2值');
        alert(parseFloat(number1) + parseFloat(number2)); */
        var yourname = prompt('姓名：');
        var sex = prompt('性别：');
        var age = prompt('年龄：');
        alert('姓名：' + yourname + '\n' + '性别：' + sex + '\n' + '年龄：' + age);
    </script>

</head>

<body>
</body>

</html>